﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JjProcess.aspx.cs" Inherits="UI.ModSalary.JjProcess" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
      <script type="text/javascript">
          function aclose(a, b, c, d) {
              this.document.forms[0].txtProcCode.value = a;
              this.document.forms[0].txtName.value = b;
              this.document.forms[0].txtPrice.value = c;
              this.document.forms[0].txtScrapSal.value = d;
          }
    </script>
    
</head>
<body>
    <form id="form1" runat="server">
   <div id="pagetop" class="pagetop">
            <div class="pagetopleft"> 定义工序</div>    
    </div>
    <table border="1px" style="width:100%; border-collapse:separate; border-color:Black; ">

     <tr>
     <td valign="top">
       
      <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False"  
            HorizontalAlign="Center" Width="98%"  CssClass="td" 
             CellPadding="4" ForeColor="#333333" 
             GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
      <Columns>

                  <asp:TemplateField HeaderText="编号"  SortExpression="ProcCode">
                    <ItemTemplate>
                        <a style="cursor: hand" onclick="javascript:aclose('<%# Eval("ProcCode") %>','<%# Eval("Name") %>','<%# Eval("Price") %>','<%# Eval("ScrapSal") %>')">
                            <%# Eval("ProcCode")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
           
              <asp:TemplateField HeaderText="工序名称"  SortExpression="Name">
                    <ItemTemplate>
                       <a style="cursor: hand" onclick="javascript:aclose('<%# Eval("ProcCode") %>','<%# Eval("Name") %>','<%# Eval("Price") %>','<%# Eval("ScrapSal") %>')">
                          <%# Eval("Name")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
              <asp:BoundField DataField="Price" HeaderText="工序单价" SortExpression="Price">
               
            </asp:BoundField>
              <asp:BoundField DataField="ScrapSal" HeaderText="报扣单价" SortExpression="ScrapSal">
               
            </asp:BoundField>           
            

        </Columns>         
                        <AlternatingRowStyle BackColor="#F7F7F7" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>

    </td>
     <td style="width:200px; vertical-align:top;">
     <br />
         <table align="left" width="100%" class="td">
             <tr>
                 <td>
                    工序编号</td>
                 <td>
                   
            
                <asp:TextBox ID="txtProcCode" runat="server" CssClass="InputCss" Width="80px"
                    onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
                    
                 </td>
             </tr>
             <tr>
                 <td>
                    名称</td>
                 <td>
            
                <asp:TextBox ID="txtName" runat="server" CssClass="InputCss" Width="120px"
                    onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
                 </td>
             </tr>
             <tr>
                 <td>
                     工序单价</td>
                 <td>
                     
            
                <asp:TextBox ID="txtPrice" runat="server" CssClass="InputCss" Width="80px"
                    onkeydown="if(event.keyCode==13)event.keyCode=9"></asp:TextBox>
                    
                 </td>
             </tr>
             <tr>
                 <td>
                     废扣价格</td>
                 <td>
            
                <asp:TextBox ID="txtScrapSal" runat="server" CssClass="InputCss" Width="80px"
                    onkeydown="if(event.keyCode==13)event.keyCode=9">0</asp:TextBox>
                 </td>
             </tr>
             <tr>
                 <td>
                     &nbsp;</td>
                 <td>
        <asp:Button ID="btnAdd" runat="server" Text="增加" Width="35px" 
            CssClass="InputCss" onclick="btnAdd_Click"  />
        <asp:Button ID="btnUpdate" runat="server" Text="更新" Width="35px" 
            CssClass="InputCss" onclick="btnUpdate_Click"  />
             <asp:Button ID="btnDel" runat="server" Text="删除" Width="35px" 
            CssClass="InputCss" onclick="btnDel_Click"   />
                 </td>
             </tr>
             <tr>
                 <td>
                     &nbsp;</td>
                 <td>
                     &nbsp;</td>
             </tr>
         </table>
         </td>
     </tr>
     </table>
    </form>
</body>
</html>
